package com.fahai.web.dao;


import com.fahai.common.CommonMapper;
import com.fahai.web.entity.UserInfo;
import com.fahai.web.vo.CallFlownoVo;
import com.fahai.web.vo.ClientManageConditionVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 用户管理的视图
 */

@Repository
public interface ClientManageDao extends CommonMapper<UserInfo> {
    /**
     * 多表的查询 动态的添加不好使 用sql拼接
     * @param
     * @return
     */
    public List getClientList(ClientManageConditionVo vo);/**
     * 获取总页数
     * @param
     * @return
     */
    public int getClientCount(ClientManageConditionVo vo);


    public int getEffectiveTimes(Integer vo);

    /**
     * 批量解冻
     * @param idlist  主键集合
     */
    public void unfrozeAccount(List<Integer> idlist);

    /**
     * 批量冻结
     * @param idlist 主键集合
     */
    public void frozeAccount(List<Integer> idlist);

    public List<CallFlownoVo> selectRecordListByUserid(Map<String ,Object> usermap);
    public int selectRecordCountForUser(Integer uid);
}